namespace Winner.Game.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("AgentInfo")]
    public partial class AgentInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public AgentInfo()
        {
            GameInfo = new HashSet<GameInfo>();
        }

        [Key]
        public int AgentID { get; set; }

        [Required]
        [StringLength(64)]
        public string AgentName { get; set; }

        [Required]
        [StringLength(128)]
        public string AgentGameName { get; set; }

        [Required]
        [StringLength(128)]
        public string AgentNews { get; set; }

        public int AgentProfit { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<GameInfo> GameInfo { get; set; }
    }
}
